<template>
  <span v-if="show">
    <slot name="auth"></slot>
  </span>
</template>
<script>
let _this = {};
export default {
  data() {
    return {
      show: false,
      url: {
        checkAuth: "/auth/check"
      }
    };
  },
  props: ["role"],
  mounted() {},
  created() {
    let role = window.localStorage.getItem("relay.role");
    if(role==this.role){
        this.show=true;
    }
  }
};
</script>
